package net.lucamasini.fantacalcio.gwt.client;

import net.lucamasini.fantacalcio.gwt.client.presenter.CreaPronosticoPresenter;
import net.lucamasini.fantacalcio.gwt.client.view.CreaPronosticoPanel;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.RootPanel;

public class Fantacalcio implements EntryPoint {

	@Override
	public void onModuleLoad() {
		Element loading = Document.get().getElementById("loading");
		loading.getParentElement().removeChild(loading);

		CreaPronosticoPresenter presenter = new CreaPronosticoPresenter(new CreaPronosticoPanel());
		presenter.go(RootPanel.get());
	}

    private static HandlerManager eventBus = new HandlerManager(null);

    public static HandlerManager getEventBus() {
        return eventBus;
    }	
}
